package adv6.thread;

/**
 * @author oldliu
 * @since 1.0
 */
public class Thread0 {
    private String name;

    public Thread0(String name) {
        this.name = name;
    }

    public void start() {
        run();
    }

    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println(this.name+" ====" +i);
        }
    }

    public static void main(String[] args) {
        for (int i = 1; i <= 5; i++) {
            new Thread0("不是线程"+i).start();
        }
    }
}
